<script setup lang="ts">
const  options =  [{
  text: '取消',
  style: {
    backgroundColor: '#007aff'
  }
}, {
  text: '确认',
  style: {
    backgroundColor: '#dd524d'
  }
}]

const onClick = (e: UniHelper.UniSwipeActionItemOnClick) => {
  console.log(e)
}
const change = () => {}
</script>

<template>
  <uni-swipe-action>
    <!-- @vue-ignore -->
    <uni-swipe-action-item :right-options="options" :left-options="options" @click="onClick" @change="change">
      <view style="height:60px;">SwipeAction 基础使用场景</view>
    </uni-swipe-action-item>
  </uni-swipe-action>
</template>

<style scoped></style>